//--ZZProfIt--
/**********************************************************************
  The MIT License (MIT)
  Copyright (c) 2012 sunriseyuen

  Permission is hereby granted, free of charge, to any person obtaining
  a copy of this software and associated documentation files
  (the "Software"), to deal in the Software without restriction,
  including without limitation the rights to use, copy, modify, merge,
  publish, distribute, sublicense, and/or sell copies of the Software,
  and to permit persons to whom the Software is furnished to do so,
  subject to the following conditions:

  The above copyright notice and this permission notice shall be included
  in all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
  THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 ***********************************************************************/
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;

using Dot.StreamObject;

namespace Muki.Entity
{
	[Serializable]
		[AttributeMapping(TableName="CATRTBM")]
		public class CATRTBMEntity: EntityObject
		{


#region Field
				private	string _ABC_CLASS="";
				private	bool _BACK_FLUSH=false;
				private	string _CAT_CODE="";
				private	string _CAT_NAME01="";
				private	string _CAT_NAME02="";
				private	string _CAT_NAME03="";
				private	string _CAT_NAME04="";
				private	string _CLASS_CODE="";
				private	decimal _LEAD_TM=0;
				private	decimal _MAX_STK=0;
				private	string _MBC_CODE="";
				private	decimal _MIN_ORD=0;
				private	decimal _MIN_STK=0;
				private	decimal _PKG_ORD=0;
				private	decimal _SCP_FACT=0;
				private	string _UOM_CODE="";
				private	string _UOM_ENG="";
				private	DateTime _ZADD_DATE=DateTime.MinValue;
				private	string _ZADD_USER="";
				private	DateTime _ZCHG_DATE=DateTime.MinValue;
				private	string _ZCHG_FLAG="";
				private	string _ZCHG_USER="";
				private	string _ZSECURITY_CODE1="";
				private	string _ZSECURITY_CODE2="";
				private	string _ZSECURITY_CODE3="";
				private	string _ZSECURITY_CODE4="";
				private	string _ZSECURITY_CODE5="";
				private	string _ZSECURITY_CODE6="";
				private	Int32 _ZSECURITY_RIGHT=0;
#endregion

#region Properties
				//<Summary>
				//CATRTBM,ABC_CLASS
				//</Summary>
				public string ABC_CLASS
				{
					get { return _ABC_CLASS; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ABC_CLASS)
							{
								_ABC_CLASS = value; 
								this.PropertyChange("ABC_CLASS");
							}
						}else{
							_ABC_CLASS = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,BACK_FLUSH
				//</Summary>
				public bool BACK_FLUSH
				{
					get { return _BACK_FLUSH; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_BACK_FLUSH)
							{
								_BACK_FLUSH = value; 
								this.PropertyChange("BACK_FLUSH");
							}
						}else{
							_BACK_FLUSH = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,CAT_CODE
				//</Summary>
					[AttributeMapping(PrimaryKey=true)]
				public string CAT_CODE
				{
					get { return _CAT_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CAT_CODE)
							{
								_CAT_CODE = value; 
								this.PropertyChange("CAT_CODE");
							}
						}else{
							_CAT_CODE = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,CAT_NAME01
				//</Summary>
				public string CAT_NAME01
				{
					get { return _CAT_NAME01; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CAT_NAME01)
							{
								_CAT_NAME01 = value; 
								this.PropertyChange("CAT_NAME01");
							}
						}else{
							_CAT_NAME01 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,CAT_NAME02
				//</Summary>
				public string CAT_NAME02
				{
					get { return _CAT_NAME02; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CAT_NAME02)
							{
								_CAT_NAME02 = value; 
								this.PropertyChange("CAT_NAME02");
							}
						}else{
							_CAT_NAME02 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,CAT_NAME03
				//</Summary>
				public string CAT_NAME03
				{
					get { return _CAT_NAME03; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CAT_NAME03)
							{
								_CAT_NAME03 = value; 
								this.PropertyChange("CAT_NAME03");
							}
						}else{
							_CAT_NAME03 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,CAT_NAME04
				//</Summary>
				public string CAT_NAME04
				{
					get { return _CAT_NAME04; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CAT_NAME04)
							{
								_CAT_NAME04 = value; 
								this.PropertyChange("CAT_NAME04");
							}
						}else{
							_CAT_NAME04 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,CLASS_CODE
				//</Summary>
				public string CLASS_CODE
				{
					get { return _CLASS_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_CLASS_CODE)
							{
								_CLASS_CODE = value; 
								this.PropertyChange("CLASS_CODE");
							}
						}else{
							_CLASS_CODE = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,LEAD_TM
				//</Summary>
				public decimal LEAD_TM
				{
					get { return _LEAD_TM; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_LEAD_TM)
							{
								_LEAD_TM = value; 
								this.PropertyChange("LEAD_TM");
							}
						}else{
							_LEAD_TM = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,MAX_STK
				//</Summary>
				public decimal MAX_STK
				{
					get { return _MAX_STK; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_MAX_STK)
							{
								_MAX_STK = value; 
								this.PropertyChange("MAX_STK");
							}
						}else{
							_MAX_STK = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,MBC_CODE
				//</Summary>
				public string MBC_CODE
				{
					get { return _MBC_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_MBC_CODE)
							{
								_MBC_CODE = value; 
								this.PropertyChange("MBC_CODE");
							}
						}else{
							_MBC_CODE = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,MIN_ORD
				//</Summary>
				public decimal MIN_ORD
				{
					get { return _MIN_ORD; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_MIN_ORD)
							{
								_MIN_ORD = value; 
								this.PropertyChange("MIN_ORD");
							}
						}else{
							_MIN_ORD = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,MIN_STK
				//</Summary>
				public decimal MIN_STK
				{
					get { return _MIN_STK; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_MIN_STK)
							{
								_MIN_STK = value; 
								this.PropertyChange("MIN_STK");
							}
						}else{
							_MIN_STK = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,PKG_ORD
				//</Summary>
				public decimal PKG_ORD
				{
					get { return _PKG_ORD; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_PKG_ORD)
							{
								_PKG_ORD = value; 
								this.PropertyChange("PKG_ORD");
							}
						}else{
							_PKG_ORD = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,SCP_FACT
				//</Summary>
				public decimal SCP_FACT
				{
					get { return _SCP_FACT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_SCP_FACT)
							{
								_SCP_FACT = value; 
								this.PropertyChange("SCP_FACT");
							}
						}else{
							_SCP_FACT = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,UOM_CODE
				//</Summary>
				public string UOM_CODE
				{
					get { return _UOM_CODE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_UOM_CODE)
							{
								_UOM_CODE = value; 
								this.PropertyChange("UOM_CODE");
							}
						}else{
							_UOM_CODE = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,UOM_ENG
				//</Summary>
				public string UOM_ENG
				{
					get { return _UOM_ENG; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_UOM_ENG)
							{
								_UOM_ENG = value; 
								this.PropertyChange("UOM_ENG");
							}
						}else{
							_UOM_ENG = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZADD_DATE
				//</Summary>
				public DateTime ZADD_DATE
				{
					get { return _ZADD_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZADD_DATE)
							{
								_ZADD_DATE = value; 
								this.PropertyChange("ZADD_DATE");
							}
						}else{
							_ZADD_DATE = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZADD_USER
				//</Summary>
				public string ZADD_USER
				{
					get { return _ZADD_USER; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZADD_USER)
							{
								_ZADD_USER = value; 
								this.PropertyChange("ZADD_USER");
							}
						}else{
							_ZADD_USER = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZCHG_DATE
				//</Summary>
				public DateTime ZCHG_DATE
				{
					get { return _ZCHG_DATE; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_DATE)
							{
								_ZCHG_DATE = value; 
								this.PropertyChange("ZCHG_DATE");
							}
						}else{
							_ZCHG_DATE = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZCHG_FLAG
				//</Summary>
				public string ZCHG_FLAG
				{
					get { return _ZCHG_FLAG; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_FLAG)
							{
								_ZCHG_FLAG = value; 
								this.PropertyChange("ZCHG_FLAG");
							}
						}else{
							_ZCHG_FLAG = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZCHG_USER
				//</Summary>
				public string ZCHG_USER
				{
					get { return _ZCHG_USER; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZCHG_USER)
							{
								_ZCHG_USER = value; 
								this.PropertyChange("ZCHG_USER");
							}
						}else{
							_ZCHG_USER = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_CODE1
				//</Summary>
				public string ZSECURITY_CODE1
				{
					get { return _ZSECURITY_CODE1; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE1)
							{
								_ZSECURITY_CODE1 = value; 
								this.PropertyChange("ZSECURITY_CODE1");
							}
						}else{
							_ZSECURITY_CODE1 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_CODE2
				//</Summary>
				public string ZSECURITY_CODE2
				{
					get { return _ZSECURITY_CODE2; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE2)
							{
								_ZSECURITY_CODE2 = value; 
								this.PropertyChange("ZSECURITY_CODE2");
							}
						}else{
							_ZSECURITY_CODE2 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_CODE3
				//</Summary>
				public string ZSECURITY_CODE3
				{
					get { return _ZSECURITY_CODE3; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE3)
							{
								_ZSECURITY_CODE3 = value; 
								this.PropertyChange("ZSECURITY_CODE3");
							}
						}else{
							_ZSECURITY_CODE3 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_CODE4
				//</Summary>
				public string ZSECURITY_CODE4
				{
					get { return _ZSECURITY_CODE4; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE4)
							{
								_ZSECURITY_CODE4 = value; 
								this.PropertyChange("ZSECURITY_CODE4");
							}
						}else{
							_ZSECURITY_CODE4 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_CODE5
				//</Summary>
				public string ZSECURITY_CODE5
				{
					get { return _ZSECURITY_CODE5; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE5)
							{
								_ZSECURITY_CODE5 = value; 
								this.PropertyChange("ZSECURITY_CODE5");
							}
						}else{
							_ZSECURITY_CODE5 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_CODE6
				//</Summary>
				public string ZSECURITY_CODE6
				{
					get { return _ZSECURITY_CODE6; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_CODE6)
							{
								_ZSECURITY_CODE6 = value; 
								this.PropertyChange("ZSECURITY_CODE6");
							}
						}else{
							_ZSECURITY_CODE6 = value; 
						}
					}
				}
				//<Summary>
				//CATRTBM,ZSECURITY_RIGHT
				//</Summary>
				public Int32 ZSECURITY_RIGHT
				{
					get { return _ZSECURITY_RIGHT; }
					set 
					{
						if (this.Verified)
						{
							if (value!=_ZSECURITY_RIGHT)
							{
								_ZSECURITY_RIGHT = value; 
								this.PropertyChange("ZSECURITY_RIGHT");
							}
						}else{
							_ZSECURITY_RIGHT = value; 
						}
					}
				}
#endregion
		}
}
